package cn.anlaser.database;

import org.hibernate.cfg.ImprovedNamingStrategy;

/**
 * @author jskyme
 * 
 */
public class DbNamingStrategy extends ImprovedNamingStrategy {

	private static final long serialVersionUID = -5219195907603070933L;
	public static final String PREFIX = "WOW_";

	@Override
	public String tableName(String tableName) {
		return this.addPrefix(tableName.toUpperCase());
	}

	private String addPrefix(final String composedTableName) {
		return PREFIX + composedTableName.toUpperCase();
	}

}
